package com.yuxinmuyu.sports_management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuxinmuyu.sports_management.bean.entiy.STeacher;
import com.yuxinmuyu.sports_management.bean.response.STeacherResponse;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface STeacherMapper extends BaseMapper<STeacher> {
    Page<STeacherResponse> selectTeachers(Page<STeacherResponse> page, @Param("deptID") String deptID, @Param("keyWord")String keyWord);

    int updateTeacher(String teacherID, String deptID, String teacherName, Date enteryDate, Date teacherBirth,
                      String teacherSex, String phoneNumber, String email, Date date, String userName);
}
